export const VERSION = "1.0.0";
export const MARKET_CODE = "zyl";
export const APP_NAME = "智能配方";
export const SHARE_SLOGAN = "【智能配方】塑化智能问答助理";

export const ossURL =
	"https://zuiyouliao.oss-cn-beijing.aliyuncs.com/ZYL-HQ/static/images";
export const logoGPT = `${ossURL}/logo_chatplas.png`;
export const logoMe = `${ossURL}/img_avatar_asker.png`;
export const SHARE_IMG = `${ossURL}/ChatPlus_logo.jpg`;
//api的域名前缀
// 测试  https://hqh5test.zuiyouliao.com/gw
// 预发  https://hqh5pre.zuiyouliao.com/gw
// 正式  https://zshqh5.zuiyouliao.com/gw

// 开发环境中的api
let debugH5 = false; // 是否开启h5调试
// #ifdef H5
debugH5 = false;
// #endif
export const ROUTER_WHITE_LIST = ['applyTest','findPassWord','invite','InviteMobile','login','adminLogin','AuditManage','TeamManage','DialogSetting','UserManage','shareMessage','unloginShareMessage']
/**
 * 开发以及打包的环境地址
 */
export const currentEnv = "TEST"; // DEV  TEST  PRE  PROD
export const isDebug = ["DEV", "TEST", "PRE"].includes(currentEnv); //解决小程序调试面板 不显示网络请求的问题

const baseApiMap = {
	DEV: "https://hqadmindev.zuiyouliao.com/api",
	TEST: "https://hqadmintest.zuiyouliao.com/gw",
	PRE: "https://zshqadminpre.zuiyouliao.com/gw",
	PROD: "https://zshqadmin.zuiyouliao.com/gw",
};

//生成图片服务接口
const imgApiMap = {
	// DEV: 'http://127.0.0.1:3000',
	DEV: "http://10.0.6.243:3000",
	// TEST: 'http://127.0.0.1:3000',
	TEST: "http://10.0.6.243:3000",
	// PRE: 'http://127.0.0.1:3000',
	PRE: "https://prechatplas.zuiyouliao.com",
	// PROD: 'http://127.0.0.1:3000'
	PROD: "https://chatplas.zuiyouliao.com",
};

export const IMG_URL = imgApiMap?.[currentEnv];

const baseSocketUrlMap = {
	// DEV: "wss://hqadmindev.zuiyouliao.com",
	DEV: "wss://hqformutest.zuiyouliao.com",
	TEST: "wss://hqformutest.zuiyouliao.com",
	PRE: "wss://zshqadminpre.zuiyouliao.com",
	PROD: "wss://zshqadmin.zuiyouliao.com",
};
// http://10.0.3.131:9996/swagger-ui.html

export const APP_BASE_SOCKET_URL = baseSocketUrlMap[currentEnv];

/**
 *开发环境的api前缀
 */
export const APP_BASE_API =
	process.env.NODE_ENV === "development" && debugH5
		? "/gw" // 如果是h5本地开发，则使用 /api,走manifest.json中的网络代理 注意anifest.json的环境配置和这边得保持一致
		: baseApiMap[currentEnv];

/**
 *
 * 行情vue项目H5的域名
 * 测试 https://hqh5test.zuiyouliao.com
 * 预发 https://hqh5pre.zuiyouliao.com
 * 正式 https://zshqh5.zuiyouliao.com
 *
 */
console.log("APP_BASE_API", APP_BASE_API);
const appDomainMap = {
	TEST: "https://hqh5test.zuiyouliao.com",
	PRE: "https://hqh5pre.zuiyouliao.com",
	PROD: "https://zshqh5.zuiyouliao.com",
};

export const APP_DOMAIN = appDomainMap[currentEnv];

/**
 *
 * 星球H5域名
 * 测试  https://hqmptest.zuiyouliao.com
 * 预发  https://hqmppre.zuiyouliao.com
 * 正式  https://hqmp.zuiyouliao.com
 *
 */

const planetDomainMap = {
	TEST: "https://hqmptest.zuiyouliao.com",
	PRE: "https://hqmppre.zuiyouliao.com",
	PROD: "https://hqmp.zuiyouliao.com",
};

export const uploadAction = 'https://searchalgtest.zuiyouliao.com/pdf_parsing_process/'

export const APP_PLANET_DOMAIN = planetDomainMap[currentEnv];

export const PAGE_NAME_HOME = "首页";
export const PAGE_NAME_CHAT = "问答";
export const PAGE_NAME_EVENT = "事件详情页";
export const PAGE_NAME_ARTICLE = "文章详情页";
export const PAGE_NAME_MINE = "个人中心";
/**
 * 首页
问答
事件详情页
文章详情页
个人中心
 */
